import React, { useState } from 'react'

export default function App() {
  const [count,setCount]=useState(0)
  //useState记忆函数 记住状态
  //
  const myCount=0
    return (
      <div>App
        <button onClick={()=>{
           setCount(count+1)
           myCount++
        }}>点击增加</button>
        {count}-{myCount}
      </div>
    )
 
}
